<?php

class GeoActiveRecord extends CActiveRecord
{
    private $_db;
    public function getDbConnection(){
        if(!$this->_db){
            $this->_db = Yii::app()->dbGeo;
            $this->_db->setActive(true);
        }
        return $this->_db;
    }
    
    

}